#include <stdio.h>

void reverse(char* str)
{
    char *start = str, *end = str;
    char tmp;
    while(*end) end++;
    end--;
    while(start < end) {
        tmp = *end;
        *end = *start;
        *start = tmp;
        end--;
        start++;
    }
}

int main()
{
    char s[100];
    scanf("%s", s);
    reverse(s);
    printf("%s\n", s);
}